package com.ld.security.tool;

import com.aliyun.oss.OSSClient;
import com.ld.security.auth.client.AuthClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;


@SpringBootApplication
@EnableCaching
@AuthClient
public class LdSecurityToolApplication {

	private String endpoint="oss-cn-hongkong.aliyuncs.com";

	private String accessKeyId="LTAI3MlVyHfQ7xyf";

	private String accessKeySecret="3jrc1dHzFAEZ3nMoZt7Aw8EKUcJt6f";


	@Bean
	public OSSClient ossClient(){
		OSSClient ossClient = new OSSClient(endpoint, accessKeyId, accessKeySecret);
		return ossClient;
	}



	public static void main(String[] args) {

		SpringApplication.run(LdSecurityToolApplication.class, args);
	}

}
